package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.EquipmentServiceBillingSettingsMapper;
import com.ruoyi.system.domain.EquipmentServiceBillingSettings;
import com.ruoyi.system.service.IEquipmentServiceBillingSettingsService;

/**
 * 设备服务计费设置Service业务层处理
 *
 * @author ruoyi
 * @date 2025-05-09
 */
@Service
public class EquipmentServiceBillingSettingsServiceImpl implements IEquipmentServiceBillingSettingsService
{
    @Autowired
    private EquipmentServiceBillingSettingsMapper equipmentServiceBillingSettingsMapper;

    /**
     * 通过id查询设备服务计费设置
     *
     * @param id 设备服务计费设置主键
     * @return 设备服务计费设置
     */
    @Override
    public EquipmentServiceBillingSettings selectEquipmentServiceBillingSettingsById(Long id)
    {
        return equipmentServiceBillingSettingsMapper.selectEquipmentServiceBillingSettingsById(id);
    }

    /**
     * 查询设备服务计费设置列表
     *
     * @param storeName 门店名称
     * @return 设备服务计费设置
     */
    @Override
    public List<EquipmentServiceBillingSettings> selectEquipmentServiceBillingSettingsListByName(String storeName)
    {
        return equipmentServiceBillingSettingsMapper.selectEquipmentServiceBillingSettingsListByName(storeName);
    }

    /**
     * 新增设备服务计费设置
     *
     * @param equipmentServiceBillingSettings 设备服务计费设置
     * @return 结果
     */
    @Override
    public int insertEquipmentServiceBillingSettings(EquipmentServiceBillingSettings equipmentServiceBillingSettings)
    {
        return equipmentServiceBillingSettingsMapper.insertEquipmentServiceBillingSettings(equipmentServiceBillingSettings);
    }

    /**
     * 修改设备服务计费设置
     *
     * @param equipmentServiceBillingSettings 设备服务计费设置
     * @return 结果
     */
    @Override
    public int updateEquipmentServiceBillingSettings(EquipmentServiceBillingSettings equipmentServiceBillingSettings)
    {
        return equipmentServiceBillingSettingsMapper.updateEquipmentServiceBillingSettings(equipmentServiceBillingSettings);
    }

    /**
     * 通过id批量删除设备服务计费设置信息
     *
     * @param ids 需要删除的设备服务计费设置主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentServiceBillingSettingsByIds(Long[] ids)
    {
        return equipmentServiceBillingSettingsMapper.deleteEquipmentServiceBillingSettingsByIds(ids);
    }

    /**
     * 通过id删除设备服务计费设置信息
     *
     * @param id 设备服务计费设置主键
     * @return 结果
     */
    @Override
    public int deleteEquipmentServiceBillingSettingsById(Long id)
    {
        return equipmentServiceBillingSettingsMapper.deleteEquipmentServiceBillingSettingsById(id);
    }
}
